<?php

namespace Biz\service\brand;

use Biz\service\BrandRights\BrandRightsAllService;

class BrandExpireService
{
    /**
     * 触发品牌权益过期操作
     * @param $brandId
     * @return bool
     */
    public static function trigger($brandId)
    {
        self::removeBrandRights($brandId);

        return true;
    }


    /**
     * 移除过期品牌的权益
     * @param $brandId
     * @return bool
     */
    private static function removeBrandRights($brandId)
    {
        $result = BrandRightsAllService::removeBrandRights($brandId);
        if (!$result) {
            return false;
        }

        return true;
    }


}